package com.woniu.user.service;

import com.woniu.user.dto.UserRegisterDTO;
import com.woniu.user.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.user.vo.UserLoginVO;

import java.math.BigDecimal;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author hushunlai
 * @since 2023-05-22
 */
public interface IUserService extends IService<User> {


    UserLoginVO loginByPassword(String mobile, String password);

    UserLoginVO getByMobile(String mobile);

    void register(UserRegisterDTO userRegisterDTO);

    void updateAmount(String mobile, BigDecimal amount);

    void addAmount(String mobile, BigDecimal amount);

    void updateStoreId(Integer storeId, String mobile);
}
